import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqArenaCrossToplistHelper } from "./SeqArenaCrossToplistHelper";
type int = number;
//class SArenaCrossToplists
    
    export  class SArenaCrossToplists extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SArenaCrossToplists();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.process);
            arg1.writeInt(this.groupId);
            arg1.writeInt(this.pageNum);
            arg1.writeInt(this.totalNum);
            arg1.writeInt(this.myRank);
            SeqArenaCrossToplistHelper.write(arg1, this.toplists);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.process = arg1.readInt();
            this.groupId = arg1.readInt();
            this.pageNum = arg1.readInt();
            this.totalNum = arg1.readInt();
            this.myRank = arg1.readInt();
            this.toplists = SeqArenaCrossToplistHelper.read(arg1);
            return;
        }

        public /* const */_type: int=348;

        public /* var */process: int;

        public /* var */groupId: int;

        public /* var */pageNum: int;

        public /* var */totalNum: int;

        public /* var */myRank: int;

        public /* var */toplists: Array<any>;

        public static /* var */_regist: SArenaCrossToplists;
    }

            SArenaCrossToplists._regist = new SArenaCrossToplists(true);
        